package com.leyou.goods.utils;


import org.springframework.beans.factory.annotation.Autowired;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;


public class ThreadUtils {

    @Autowired
    public static  final ExecutorService EXECUTOR_SERVICE = Executors.newFixedThreadPool(10);
    public static void execute(Runnable runnable){
        EXECUTOR_SERVICE.submit(runnable);
    }


}




